package com.yunzone.cloud.common.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Result<T> {

    private int code;
    private boolean success;
    private String msg;
    private T data;

    public Result(int code, boolean success, String msg) {
        this.code = code;
        this.success = success;
        this.msg = msg;
    }
}
